package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * @TableName t_staff
 */
@TableName(value = "t_staff")
@Data
public class Staff implements Serializable {
    /**
     * #
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 人员名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 人员性别
     */
    @TableField(value = "gender")
    private String gender;

    /**
     * 人员工号
     */
    @TableField(value = "number")
    private String number;

    /**
     * 所属机构id
     */
    @TableField(value = "mec_id")
    private Integer mec_id;

    /**
     * 单位机构分类
     */
    @TableField(exist = false)
    private List<Mechanism> mechanism;

    /**
     * 人员电话号
     */
    @TableField(value = "phoneNumber")
    private String phonenumber;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}